﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace LynxWebLog
{
    [DataContract(Namespace = "http://schemas.datacontract.org/2004/07/LynxBlogAPI.Models")]
    public class BlogData
    {
        [DataMember]
        public string blogid { get; set; }
        [DataMember]
        public string username { get; set; }
        [DataMember]
        public string blogname { get; set; }
        [DataMember]
        public string url { get; set; }
        [DataMember]
        public string license { get; set; }


        public BlogData() { }

        public BlogData(BlogInfo bi, string username, string license = "")
        {
            this.blogid = bi.blogid;
            this.username = username;
            this.blogname = bi.blogName;
            this.url = bi.url;
            this.license = license;
        }
    }
}